package com.lct.d8_extends_demo;

public class Test {
    public static void main(String[] args) {
        //继承的作用
    Teacher t = new Teacher();
    t.setName("张三");
    t.setSkills("加班");
    System.out.println(t.getName());
    System.out.println(t.getSkills());
    }
}
